//
//  HistoryCell.m
//  UHealth
//
//  Created by gjtxz on 15/1/7.
//  Copyright (c) 2015年 gjtx. All rights reserved.
//

#import "HistoryCell.h"

@implementation HistoryCell

- (void)awakeFromNib {
    // Initialization code
    _postBtn.layer.masksToBounds = YES;
    [_postBtn.layer setCornerRadius:5];
}

- (void)setData:(NSDictionary *)dataDict
{
    NSString *imgStr            = dataDict[kimgStr];
    NSString *titleStr          = dataDict[ktitleStr];
    NSString *detaiTitleStr     = dataDict[kdetaiTitleStr];
    
    self.img.image              = [UIImage imageNamed:imgStr];
    self.title.text             = titleStr;
    self.detaiTitle.text        = detaiTitleStr;
}

- (IBAction)postBtnClick:(id)sender {
    self.block(self);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
